﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ShopOnline.BLL;

namespace ShopOnline
{
    public partial class BCViewer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["id"]))
            {
                BusinessCards bc = new BusinessCards();
                bc.LoadByPrimaryKey(int.Parse(Request.QueryString["id"]));
                if (bc.RowCount > 0)
                {
                    divCardFrontPreview.InnerHtml = bc.FrontSide;
                    divCardBackPreview.InnerHtml = bc.BackSide;
                }
            }
        }
    }
}